<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML>
<html>
  <head>
    <title>empList</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta charset="utf-8">

  </head>
  
  <body>
  <c:if test="${type == 'emp'}">
    <c:forEach items="${list}" var="emp">
    	${emp.name}&nbsp;${emp.contactCode}&nbsp;${emp.birthday}<a href="${pageContext.request.contextPath}/EmpControl/getEmpById?id=${emp.id}">人员信息</a><br/>
    </c:forEach>
  </c:if>
  <c:if test="${type == 'user'}">
    <c:forEach items="${list}" var="user">
    	${user.userName}&nbsp;${user.account}&nbsp;${user.createTime}<a href="${pageContext.request.contextPath}/EmpControl/getUserById?id=${user.id}">人员信息</a><br/>
    </c:forEach>
  </c:if> 
  </body>
</html>
